import request from '@/utils/request'

export function setKeyValue (data) {
  return request({
    url: '/v01/config/create',
    method: 'post',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
    data: data
  })
}

export function updateKeyValue (data) {
  return request({
    url: '/v01/config/update',
    method: 'put',
    // params: {
    // },
    data: data
  })
}

export function allKeyValue (params) {
  return request({
    url: '/v01/config/all',
    method: 'get',
    params: params
  })
}
